package com.shanzmoo.db.trade.service;

import com.shanzmoo.base.bean.SResponse;
import com.shanzmoo.db.trade.entity.PayOrderBodyEntity;
import com.shanzmoo.db.trade.entity.PayOrderEntity;
import com.baomidou.mybatisplus.extension.service.IService;

import java.time.LocalDateTime;

/**
 * <p>
 * 支付订单 服务类
 * </p>
 *
 * @author Gzhao
 * @since 2020-12-09
 */
public interface IPayOrderService extends IService<PayOrderEntity> {

    SResponse<Boolean> updatePaySuccessStatus(PayOrderEntity payOrderEntity, LocalDateTime finishTime);

    PayOrderEntity getByPayNo(String payNo);

    SResponse<Boolean> updatePaySuccessStatusByNo(String payNo);

    void updateByPayQuery(PayOrderEntity order, PayOrderBodyEntity payOrderBody);

    PayOrderEntity saveOrder(PayOrderEntity payOrderEntity, PayOrderBodyEntity payOrderBody);

    void updateQueryTimes(String payNo);
}
